package org.polaris.authority.mapper;


import org.apache.ibatis.annotations.Param;
import org.polaris.authority.domain.Role;
import org.polaris.authority.query.RoleQuery;
import org.polaris.basic.mapper.BaseMapper;

import java.io.Serializable;
import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {

    Role selectBySn(String sn);

    void deleteByRoleId(Long roleId);


    void saveRolePermission(@Param("roleId") Long roleId,@Param("permissionSns") List<String> permissionSns);

    List<String> getRolePermissionSns(Long roleId);

    void deleteRolesByEmpId(Long id);

    void saveRoles(@Param("id")Long id,@Param("rolesId") List<Long> rolesId);

    List<Long> getEmpRoles(Long eId);


    //void batchDelete(List<Long> ids);
}
